import {createRouter, createWebHashHistory} from "vue-router";

const routes = [
    {
        path: '/',
        component: () => import('../layout/index.vue'),
        redirect: '/home-page',
        children: [
            {
                path: 'home-page',
                component: () =>  import('../views/HomePage.vue')
            },
            {
                path: 'dataset',
                component: () =>  import('../views/UploadDataset.vue')
            },
            {
                path: 'search-page',
                component: () => import('../views/SearchPage.vue')
            }
        ]
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router;
